export interface CertificateInfoModel{

    id: any 
    certificateName:string  
    sendingTime:any
    deadlineTime:any
    isLongTerm:any
    status:any
    statusName:string

}

export async function certificateInfoApi(){
    return useGet<CertificateInfoModel[]>('/certificateOrder/certificateInfoList')
}

export async function logoutCertificateApi(id:number){
    return useGet<void>(`/certificateOrder/logoutCertificate/${id}`)
}


export interface CertificateModel{
    id:any
    sendingTime:any
    name:string
    certificateNo:string
    egName:string
    levelName:string
    idCard:string
    projectName:string 
    
}

export async function certificateApi(param:any){
    return usePost<CertificateModel[]>(`/web/searchCertificateList`,param)
}